<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

   
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Yiliao_pbtimecate_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-yiliao_pbtimecate_id" data-rule="required" data-source="yiliao/pbtimecate/index" data-params='{"custom[status]":"1"}' class="form-control selectpage" name="row[yiliao_pbtimecate_id]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
	 <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Yiliao_shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-yiliao_shop_id" data-rule="required" data-source="yiliao/pblist/getShop?doctorid={$doctorid|htmlentities}" class="form-control selectpage" name="row[yiliao_shop_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Startdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-startdate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[startdate]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enddate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enddate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[enddate]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shangnum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shangnum" data-rule="required" class="form-control" name="row[shangnum]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xianum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xianum" data-rule="required" class="form-control" name="row[xianum]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weekdata')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="checkbox">
            {foreach name="weekdataList" item="vo"}
            <label for="row[weekdata][]-{$key|htmlentities}"><input id="row[weekdata][]-{$key|htmlentities}" name="row[weekdata][]" type="checkbox" value="{$key|htmlentities}" {in name="key" value=""}checked{/in} /> {$vo|htmlentities}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="1"}checked{/in} /> {$vo|htmlentities}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
